package com.xiaoze.consumer.service.impl;

import com.xiaoze.api.dao.UserDao;
import com.xiaoze.api.entity.User;
import com.xiaoze.consumer.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * UserServiceImpl
 * 用户服务接受类
 * @author xiaoze
 * @date 2018/6/12
 */
@Service
public class UserServiceImpl implements UserService {

    @Reference
    private UserDao userDao ;

    @Override
    public User get(String userNo) {

        User user = null;
        user=userDao.get(userNo);
        return user;

    }


}